import { ApiProperty } from '@nestjs/swagger';

export class MessageDto {
  @ApiProperty({
    description: 'ID',
    example: 1172491,
  })
  id: number;

  @ApiProperty({
    description: '平台ID',
    example: 'CvzWzdwytW45TbGq7GURk18vv0',
  })
  iot_id: string;

  @ApiProperty({
    description: '产品Key',
    example: 'k18vvfQ8ik2',
  })
  product_key: string;

  @ApiProperty({
    description: '设备名称',
    example: 'SN1000000',
  })
  device_name: string;

  @ApiProperty({
    description: '服务质量等级',
    example: 0,
  })
  qos: number;

  @ApiProperty({
    description: ' 在线状态',
    example: 1,
  })
  status: number;

  @ApiProperty({
    description: 'Topic全名',
    example: '',
  })
  topic_full_name: string;

  @ApiProperty({
    description: '设备UDI',
    example: '01069732937201981124062810NA05221H0330CCBBB200041',
  })
  nickname: string;

  @ApiProperty({
    description: '消息内容',
    example: '指令回复消息内容',
  })
  message_content: string;

  @ApiProperty({
    description: '消息ID',
    example: '1831263127762259968',
  })
  message_id: string;

  @ApiProperty({
    description: '请求ID',
    example: '',
  })
  request_id: string;

  @ApiProperty({
    description: '备注',
    example: '备注',
  })
  remark: string;

  @ApiProperty({
    description: '创建时间',
    example: '2024-09-04T00:00:00Z',
  })
  gmt_create: Date;

  @ApiProperty({
    description: '更新时间',
    example: '2024-09-04T00:00:00Z',
  })
  gmt_update: Date;
}
